﻿@{
    Layout = null;
    }

           <!DOCTYPE html>

<html>
<head>
    <title>打印预览</title>
     @if (false)
    {
        <script src="../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
        <script src="../../Scripts/ASPxScriptIntelliSense.js" type="text/javascript"></script>
    }
    <link href="@Url.Content("~/Content/Site.css", true)" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>
  

    @Html.DevExpress().GetStyleSheets(
     new StyleSheet { ExtensionType = ExtensionType.ReportToolbar, Theme = DevExpressHelper.Theme },
                new StyleSheet { ExtensionType = ExtensionType.ReportViewer, Theme = DevExpressHelper.Theme }


)
    @Html.DevExpress().GetScripts(
             new Script { ExtensionType = ExtensionType.ListBox },
                    new Script { ExtensionType = ExtensionType.ReportViewer },
                             new Script { ExtensionType = ExtensionType.ReportToolbar }

    )
    <script type="text/javascript">

        function OnBeginCallback(s, e) {
            window.dialogArguments.OnBeginCallback(s, e);
//            e.customArgs["command"] = e.command;


//            var fSpecialAdjustName = $("#hfSpecialAdjustName").val();
//            var nsrsbh = $("#hnsrsbh").val();
//            var nsrbm = $("#hnsrbm").val();
//            var nsrmc = $("#hnsrmc").val();
//            var rKRQBeginDate = $("#hrKRQBeginDate").val();
//            var rKRQEndDate = $("#hrKRQEndDate").val();
//            var sSRQBeginDate = $("#hsSRQBeginDate").val();
//            var sSRQEndDate = $("#hsSRQEndDate").val();


//            e.customArgs["FSpecialAdjustName"] = fSpecialAdjustName;
//            e.customArgs["nsrsbh"] = nsrsbh;
//            e.customArgs["nsrbm"] = nsrbm;
//            e.customArgs["nsrmc"] = nsrmc;
//            e.customArgs["RKRQBeginDate"] = rKRQBeginDate;
//            e.customArgs["RKRQEndDate"] = rKRQEndDate;
//            e.customArgs["SSRQBeginDate"] = sSRQBeginDate;
//            e.customArgs["SSRQEndDate"] = sSRQEndDate;
        }

        

        
    </script>
</head>
<body>
    @Html.DevExpress().ReportToolbar(settings => {
        // The following settings are necessary for a Report Toolbar. 
        settings.Name = "ReportToolbar";
        settings.ReportViewerName = "reportViewer1";
        settings.Items.AddRange(new ReportToolbarItem[] {
        new ReportToolbarButton { ItemKind = ReportToolbarItemKind.PrintReport,ToolTip="直接打印" },
        new ReportToolbarButton { ItemKind = ReportToolbarItemKind.PrintPage,ToolTip="打印当前页" },
        new ReportToolbarSeparator(),
        new ReportToolbarButton { ItemKind = ReportToolbarItemKind.FirstPage,ToolTip="第一页"  },
        new ReportToolbarButton { ItemKind = ReportToolbarItemKind.PreviousPage,ToolTip="上一页" },
        new ReportToolbarLabel { ItemKind = ReportToolbarItemKind.PageLabel,Text="页码" },
        new ReportToolbarComboBox { ItemKind = ReportToolbarItemKind.PageNumber, 
            Width = 65 },
        new ReportToolbarLabel { ItemKind = ReportToolbarItemKind.OfLabel,Text="~" },
        new ReportToolbarTextBox() { ItemKind = ReportToolbarItemKind.PageCount },
        new ReportToolbarButton { ItemKind = ReportToolbarItemKind.NextPage,ToolTip="下一页" },
        new ReportToolbarButton { ItemKind = ReportToolbarItemKind.LastPage, ToolTip="最后一页"},
        //new ReportToolbarButton { ItemKind = ReportToolbarItemKind.SaveToDisk },
        //new ReportToolbarButton { ItemKind = ReportToolbarItemKind.SaveToWindow },

    });
    }).GetHtml()

  @Html.Partial("ReportViewerPartial")
  
          

          @Html.Hidden("hfSpecialAdjustName", ViewData["FSpecialAdjustName"] )
    @Html.Hidden("hnsrsbh", ViewData["nsrsbh"])
    @Html.Hidden("hnsrbm", ViewData["nsrbm"]  )
    @Html.Hidden("hnsrmc", ViewData["nsrmc"])
    @Html.Hidden("hrKRQBeginDate",  ViewData["RKRQBeginDate"])
   @Html.Hidden("hrKRQEndDate",ViewData["RKRQEndDate"] )
    @Html.Hidden("hsSRQBeginDate", ViewData["SSRQBeginDate"] )
    @Html.Hidden("hsSRQEndDate", ViewData["SSRQEndDate"])
    
     
</body>
</html>
